<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<!--<base href="http://localhost/xuebao/" />-->
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>用户管理</title>
<link href="templates/admin/css/common.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div>
  {{webcontrol type="menu" name="mymenu"}}
	<div class="list">
        <div class="info">
            <div class="title_list_note">用户信息:</div>
            <div>用户:{{$user.username}}</div>
            <div>当前权限:</div>
            {{foreach from=$user.roles item=item}}
                <div>{{$item.rolename}}</div>
            {{/foreach}}
        </div>
        <div class="roles">
            <form method="post" action="{{url controller=role action=editrole}}">
            <span>权限列表:</span>
            {{foreach from=$roles item=listitem}}
                <div>
                    <input name="roles[]" type="checkbox" id="roles" value="{{$listitem.role_id}}" />
                    {{$listitem.rolename}}
                </div>
            {{/foreach}}
            <input type="submit" onfocus="this.blur()" tabindex="1" value="提交"/>
            <input type="reset" onfocus="this.blur()" tabindex="2"  value="取消"/>
            <input type="hidden" name="user_id" value="{{$user.user_id}}" />
        </form>
        </div>
    </div>
</div>
</body>
</html>
